class CreatePlanets < ActiveRecord::Migration
  def self.up
    create_table :planets do |t|
      t.integer :system_id, :null => false
    	t.string :name
    	t.string :reference
    	t.float :period
    	t.float :mass
			t.float :semi_major_axis
			t.float :eccentricity
      t.timestamps
    end
  end

  def self.down
    drop_table :bodies
  end
end
